/**
 * UDPTrafficSourceMBean.java 19.09.2006
 */
package org.dicr.traffic.source;

/**
 * Management Bean Interface for {@link UDPTrafficSource}
 * 
 * @author <A href='http://dicr.org'>Igor A Tarasov</A>
 * @version 060918
 */
public interface UDPTrafficSourceMBean {

	/**
     * Set port.
     * 
     * @param aport UDP port number to listen.
     */
	public void setPort(int aport);

	/**
     * Return port.
     * 
     * @return UDP port number.
     */
	public int getPort();

	/**
     * Check if source is running
     * 
     * @return if iptables task sheduled on specified period
     */
	public boolean isRunning();

	/**
     * Start iptables traffic source. Shedule iptables timer task on specified period.
     */
	public void start();

	/**
     * Stop iptables traffic source. Cansel iptables timer task.
     */
	public void stop();

}
